/* 
 * File:   Window.h
 * Author: agu
 *
 * Created on 17 de mayo de 2014, 19:39
 */

#ifndef WINDOW_H
#define	WINDOW_H

#include <SDL2/SDL.h>
#include <string>
#include <vector>
#include "Surface.h"

using std::string;
using std::vector;

class Window {
public:
    Window();
    Window(string title);
    Window(string title, int width, int height);
    SDL_Window* getWindowSDL();
    virtual ~Window();
    bool init();
    bool init(SDL_Renderer* renderer);
    int getWidth();
    int getHeight();
    string getTitle();
    bool isActive();
    void kill();
    void handleEvent(SDL_WindowEvent windowEvent);

private:

    static const int SCREEN_DEFAULT_WIDTH = 640;
    static const int SCREEN_DEFAULT_HEIGHT = 480;
    int width;
    int height;
    SDL_Window* window;
    string title;
    bool active;
};

#endif	/* VENTANA_H */

